#include<stdio.h>
#include <string.h>
#include <stdlib.h>
main()
{
    char num1;
    int len,i,k,sum;
    scanf("%c",&num1);
    len = strlen(num1);
    int num_list[len];
    char num_clist[len],num2;
    strcpy(num_clist,num1);
    num_list=atoi(num_clist);
    for (i=0;i<=(len-1);i++)
    {
        sum+=num_list[i];
    }
    itoa(sum,num2);
    strcpy(num_clist,num2);
    for (k=0;k<=(strlen(num2)-1;k++))
    {
        switch(num_clist[k])
        {
            case'0':printf("ling");break;
            case'1':printf("yi");break;
            case'2':printf("er");break;
            case'3':printf("san");break;
            case'4':printf("si");break;
            case'5':printf("wu");break;
            case'6':printf("liu");break;
            case'7':printf("qi");break;
            case'8':printf("ba");break;
            case'9':printf("jiu");break;
        }
        printf(" ");
    }
    
    
}
